<extend name="./Public/base.html" />
<block name="title">用户列表页</block>
<block name="body">
    <div class="clearfix well-sm">
        <ol class="breadcrumb pull-left">
          <li><a href="{:U('Index/index')}">首页</a></li>
          <li><a href="javascript:">用户列表</a></li>
        </ol>
        <a class='btn btn-primary btn-wide pull-right fui-plus' href="{:U('edit',array('page'=>$page,'rows'=>$rows))}" >&nbsp;添加用户</a>
    </div>
    <taglib name="lx" />
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>用户名</th>
<th>密码</th>
<th>邮箱</th>

                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <lx:list table="User"  page="$page,$rows" >
                <tr>
                    <td>{$v.name}</td>
<td>{$v.pwd}</td>
<td>{$v.email}</td>

                    <td>
                        <a class="fui-new" href="{:U('edit',array('id'=>$v['id'],'page'=>$page,'rows'=>$rows))}">&nbsp;编辑</a>
                        <a class="fui-cross" href="{:U('del',array('id'=>$v['id'],'page'=>$page,'rows'=>$rows))}">&nbsp;删除</a>
                    </td>
                </tr>
            </lx:list>
        </tbody>
    </table>
    <div class="text-center">
        {$page_str}
    </div>
</block>